package com.cmf.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @Author: cmf
 * @Date: 2025/8/27 18:15
 * @Version: v1.0.0
 * @Description: 是否默认枚举，用于地址簿等场景
 **/
@Getter
public enum IsDefault {

    NOT_DEFAULT(0, "否"),
    DEFAULT(1, "是");

    // 枚举值
    @EnumValue
    // 序列化时返回给前端的值
    @JsonValue
    private final Integer isDefault;
    private final String desc;

    IsDefault(Integer isDefault, String desc) {
        this.isDefault = isDefault;
        this.desc = desc;
    }
}